package com.xinqi.modules.exam.student.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.exam.student.domain.CourseExamPaperErrorSetEntity;
import com.xinqi.modules.exam.student.dto.req.CourseExamPaperErrorSetCreateDTO;
import com.xinqi.modules.exam.student.dto.req.CourseExamPaperErrorSetUpdateDTO;
import com.xinqi.modules.exam.student.dto.rsp.CourseExamPaperErrorSetResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 课程测评学生错题集转换
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class CourseExamPaperErrorSetConvert {
    public abstract CourseExamPaperErrorSetEntity create(CourseExamPaperErrorSetCreateDTO s);

    public abstract CourseExamPaperErrorSetEntity update(CourseExamPaperErrorSetUpdateDTO s, @MappingTarget CourseExamPaperErrorSetEntity t);

    public abstract CourseExamPaperErrorSetEntity update(CourseExamPaperErrorSetUpdateDTO s);

    public abstract CourseExamPaperErrorSetResultDTO convert(CourseExamPaperErrorSetEntity s);
}
